package com.qqtop10.manager.dao;

import java.util.List;

import com.qqtop10.manager.model.Address;
import com.qqtop10.manager.model.Interval;

/**
 * 
 * @Description 地区管理
 * @author ChenXinwei
 * @date 2015/9/17
 */
public interface AddressMapper {
	List<Address> tree(Address input);

	Address get(Address input);

	int delete(Address input);

	int add(Address input);

	int update(Address input);

	int setParent(Address input);

	int newId(Interval<Integer> input);

	int canDelete(Address input);
	
	Address selectByFullName(String fullName);
	
	Address selectByShortName(String shortName);
}